package com.bwie.controller;

import com.bwie.param.TbAddFriendParam;
import com.bwie.service.TbAddFriendService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description:
 *
 * @Author youhongwei
 * @Create 2025/6/17 13:58
 * @Version 1.0
 */
@RestController
@RequestMapping("user/add")
public class AddFriendController {

    @Autowired
    private TbAddFriendService tbAddFriendService;

    @PostMapping("addList")
    public R addList(@RequestBody TbAddFriendParam tbAddFriendParam){
        return tbAddFriendService.addList(tbAddFriendParam);
    }

    @PostMapping("addFriend")
    public R add(@RequestBody TbAddFriendParam tbAddFriendParam){
        return tbAddFriendService.add(tbAddFriendParam);
    }

}
